package com.zhiyou100.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou100.mapper.ClassityMapper;
import com.zhiyou100.model.Classity;
import com.zhiyou100.service.ClassityService;

@Service
public class ClassityServiceImpl implements ClassityService {

	@Autowired
	private ClassityMapper classityMapper;
	
	@Override
	public List<Classity> list() {
		List<Classity> list = classityMapper.list();
		System.out.println("service-------------输出查询到的全部项目:"+list);
		return list;
	}

	@Override
	public Classity detail(int id) {
		Classity classity = classityMapper.detail(id);
		return classity;
	}

	@Override
	public void update(Classity classity) {
		classityMapper.update(classity);
	}

	@Override
	public void delete(int id) {
		classityMapper.delete(id);
	}

	@Override
	public void add(Classity classity) {
		classityMapper.add(classity);
	}

}
